package com.wang.springbootinit.service;

import com.wang.springbootinit.model.entity.Activity;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ActivityService {
    /**
     * 添加活动
     */
    long addActivity(Activity activity);
    
    /**
     * 获取活动信息
     */
    Activity getActivity(long id);
    
    /**
     * 获取活动列表
     */
    List<Activity> listActivities(int page, int pageSize,String name,String type,Integer status);
    
    /**
     * 更新活动信息
     */
    boolean updateActivity(Activity activity);
    
    /**
     * 删除活动
     */
    boolean deleteActivity(long id);

    List<Activity> getCurrentActivities(HttpServletRequest request);
}